CC=g++
WRITER=writer
READER=reader
WRITER_SRC=writer.cc
READER_SRC=reader.cc
CONTACTS=contacts.pb.cc

all: $(WRITER) $(READER)
$(WRITER): $(WRITER_SRC) $(CONTACTS)
	$(CC) -o $@ $^ -lprotobuf -std=c++11
$(READER): $(READER_SRC) $(CONTACTS)
	$(CC) -o $@ $^ -lprotobuf -std=c++11


.PHONY: clean
clean:	
	rm $(WRITER) $(READER)
